package com.jule.teenpatti.mail.network.protocol.reqs;

import com.jule.teenpatti.mail.network.protocol.ClientHeader;
import com.jule.teenpatti.mail.network.protocol.acks.DispacherPongAck_01;
import com.jule.teenpatti.mail.network.protocol.ClientReq;
import io.netty.buffer.ByteBuf;
import lombok.extern.slf4j.Slf4j;


/**
 * 心跳消息网关->游戏服务器请求
 */
@Slf4j
public class DispacherPingReq_01 extends ClientReq {


    public DispacherPingReq_01(int functionId) {
        super(functionId);
    }

    @Override
    public void readPayLoadImpl(ByteBuf byteBuf) throws Exception {
        //现在是单向心态不需要返回
    }

    @Override
    public void processImpl() {

        ctx.writeAndFlush(new DispacherPongAck_01(null, ClientHeader.DEFAULT_HEADER));
    }
}
